/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.sack.picasawebalbums;

import org.openide.util.HelpCtx;
import org.openide.util.NbBundle;
import org.openide.util.actions.CallableSystemAction;
import org.openide.windows.TopComponent;

public final class PicasaAlbum extends CallableSystemAction {

    public void performAction() {
    // TODO implement action body
        TopComponent win = PicasaAlbumTopComponent.findInstance();
        win.open();
        win.requestActive();
    }

    public String getName() {
        return NbBundle.getMessage(PicasaAlbum.class, "CTL_PicasaAlbum");
    }

    @Override
    protected String iconResource() {
        return "org/sack/picasawebalbums/images/picasa16X16.png";
    }

    public HelpCtx getHelpCtx() {
        return HelpCtx.DEFAULT_HELP;
    }

    @Override
    protected boolean asynchronous() {
        return false;
    }
}
